package com.itheima.sh.feign;

import com.itheima.sh.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserFeignApiFallBack implements UserFeignApi {
    @Override
    public User findById(String username) {
        User user = new User();
        user.setName(username);
        user.setNickName("UserFeignApiFallBack");
        System.out.println("暂停服务--UserFeignFallBack");
        return user;
    }
}
